Optimal. Leaf size=382 \[ \frac{3 b^2 B g^3 n (b c-a d) \text{PolyLog}\left (2,\frac{d (a+b x)}{b (c+d x)}\right )}{d^4 i^3}+\frac{b^2 g^3 (b c-a d) \log \left (\frac{b c-a d}{b (c+d x)}\right ) \left (3 B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )+3 A+B n\right )}{d^4 i^3}+\frac{g^3 (a+b x)^2 (b c-a d) \left (3 B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )+3 A+B n\right )}{2 d^2 i^3 (c+d x)^2}+\frac{b g^3 (a+b x) (3 A+B n) (b c-a d)}{d^3 i^3 (c+d x)}+\frac{g^3 (a+b x)^3 \left (B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )+A\right )}{d i^3 (c+d x)^2}+\frac{3 b B g^3 (a+b x) (b c-a d) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{d^3 i^3 (c+d x)}-\frac{3 b B g^3 n (a+b x) (b c-a d)}{d^3 i^3 (c+d x)}-\frac{3 B g^3 n (a+b x)^2 (b c-a d)}{4 d^2 i^3 (c+d x)^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.7455, antiderivative size = 461, normalized size of antiderivative = 1.21, number of steps used = 21, number of rules used = 13, integrand size = 43, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.302, Rules used = {2528, 2486, 31, 2525, 12, 44, 2524, 2418, 2394, 2393, 2391, 2390, 2301} \[ \frac{3 b^2 B g^3 n (b c-a d) \text{PolyLog}\left (2,\frac{b (c+d x)}{b c-a d}\right )}{d^4 i^3}-\frac{3 b^2 g^3 (b c-a d) \log (c+d x) \left (B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )+A\right )}{d^4 i^3}-\frac{3 b g^3 (b c-a d)^2 \left (B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )+A\right )}{d^4 i^3 (c+d x)}+\frac{g^3 (b c-a d)^3 \left (B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )+A\right )}{2 d^4 i^3 (c+d x)^2}+\frac{b^2 B g^3 (a+b x) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{d^3 i^3}-\frac{3 b^2 B g^3 n (b c-a d) \log ^2(c+d x)}{2 d^4 i^3}+\frac{5 b^2 B g^3 n (b c-a d) \log (a+b x)}{2 d^4 i^3}-\frac{7 b^2 B g^3 n (b c-a d) \log (c+d x)}{2 d^4 i^3}+\frac{3 b^2 B g^3 n (b c-a d) \log (c+d x) \log \left (-\frac{d (a+b x)}{b c-a d}\right )}{d^4 i^3}+\frac{5 b B g^3 n (b c-a d)^2}{2 d^4 i^3 (c+d x)}-\frac{B g^3 n (b c-a d)^3}{4 d^4 i^3 (c+d x)^2}+\frac{A b^3 g^3 x}{d^3 i^3} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2528
Rule 2486
Rule 31
Rule 2525
Rule 12
Rule 44
Rule 2524
Rule 2418
Rule 2394
Rule 2393
Rule 2391
Rule 2390
Rule 2301
Rubi steps
\begin{align*} \int \frac{(a g+b g x)^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{(151 c+151 d x)^3} \, dx &=\int \left (\frac{b^3 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{3442951 d^3}+\frac{(-b c+a d)^3 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{3442951 d^3 (c+d x)^3}+\frac{3 b (b c-a d)^2 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{3442951 d^3 (c+d x)^2}-\frac{3 b^2 (b c-a d) g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{3442951 d^3 (c+d x)}\right ) \, dx\\ &=\frac{\left (b^3 g^3\right ) \int \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right ) \, dx}{3442951 d^3}-\frac{\left (3 b^2 (b c-a d) g^3\right ) \int \frac{A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{c+d x} \, dx}{3442951 d^3}+\frac{\left (3 b (b c-a d)^2 g^3\right ) \int \frac{A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{(c+d x)^2} \, dx}{3442951 d^3}-\frac{\left ((b c-a d)^3 g^3\right ) \int \frac{A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{(c+d x)^3} \, dx}{3442951 d^3}\\ &=\frac{A b^3 g^3 x}{3442951 d^3}+\frac{(b c-a d)^3 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{6885902 d^4 (c+d x)^2}-\frac{3 b (b c-a d)^2 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{3442951 d^4 (c+d x)}-\frac{3 b^2 (b c-a d) g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right ) \log (c+d x)}{3442951 d^4}+\frac{\left (b^3 B g^3\right ) \int \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right ) \, dx}{3442951 d^3}+\frac{\left (3 b^2 B (b c-a d) g^3 n\right ) \int \frac{(c+d x) \left (-\frac{d (a+b x)}{(c+d x)^2}+\frac{b}{c+d x}\right ) \log (c+d x)}{a+b x} \, dx}{3442951 d^4}+\frac{\left (3 b B (b c-a d)^2 g^3 n\right ) \int \frac{b c-a d}{(a+b x) (c+d x)^2} \, dx}{3442951 d^4}-\frac{\left (B (b c-a d)^3 g^3 n\right ) \int \frac{b c-a d}{(a+b x) (c+d x)^3} \, dx}{6885902 d^4}\\ &=\frac{A b^3 g^3 x}{3442951 d^3}+\frac{b^2 B g^3 (a+b x) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{3442951 d^3}+\frac{(b c-a d)^3 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{6885902 d^4 (c+d x)^2}-\frac{3 b (b c-a d)^2 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{3442951 d^4 (c+d x)}-\frac{3 b^2 (b c-a d) g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right ) \log (c+d x)}{3442951 d^4}+\frac{\left (3 b^2 B (b c-a d) g^3 n\right ) \int \left (\frac{b \log (c+d x)}{a+b x}-\frac{d \log (c+d x)}{c+d x}\right ) \, dx}{3442951 d^4}-\frac{\left (b^2 B (b c-a d) g^3 n\right ) \int \frac{1}{c+d x} \, dx}{3442951 d^3}+\frac{\left (3 b B (b c-a d)^3 g^3 n\right ) \int \frac{1}{(a+b x) (c+d x)^2} \, dx}{3442951 d^4}-\frac{\left (B (b c-a d)^4 g^3 n\right ) \int \frac{1}{(a+b x) (c+d x)^3} \, dx}{6885902 d^4}\\ &=\frac{A b^3 g^3 x}{3442951 d^3}+\frac{b^2 B g^3 (a+b x) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{3442951 d^3}+\frac{(b c-a d)^3 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{6885902 d^4 (c+d x)^2}-\frac{3 b (b c-a d)^2 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{3442951 d^4 (c+d x)}-\frac{b^2 B (b c-a d) g^3 n \log (c+d x)}{3442951 d^4}-\frac{3 b^2 (b c-a d) g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right ) \log (c+d x)}{3442951 d^4}+\frac{\left (3 b^3 B (b c-a d) g^3 n\right ) \int \frac{\log (c+d x)}{a+b x} \, dx}{3442951 d^4}-\frac{\left (3 b^2 B (b c-a d) g^3 n\right ) \int \frac{\log (c+d x)}{c+d x} \, dx}{3442951 d^3}+\frac{\left (3 b B (b c-a d)^3 g^3 n\right ) \int \left (\frac{b^2}{(b c-a d)^2 (a+b x)}-\frac{d}{(b c-a d) (c+d x)^2}-\frac{b d}{(b c-a d)^2 (c+d x)}\right ) \, dx}{3442951 d^4}-\frac{\left (B (b c-a d)^4 g^3 n\right ) \int \left (\frac{b^3}{(b c-a d)^3 (a+b x)}-\frac{d}{(b c-a d) (c+d x)^3}-\frac{b d}{(b c-a d)^2 (c+d x)^2}-\frac{b^2 d}{(b c-a d)^3 (c+d x)}\right ) \, dx}{6885902 d^4}\\ &=\frac{A b^3 g^3 x}{3442951 d^3}-\frac{B (b c-a d)^3 g^3 n}{13771804 d^4 (c+d x)^2}+\frac{5 b B (b c-a d)^2 g^3 n}{6885902 d^4 (c+d x)}+\frac{5 b^2 B (b c-a d) g^3 n \log (a+b x)}{6885902 d^4}+\frac{b^2 B g^3 (a+b x) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{3442951 d^3}+\frac{(b c-a d)^3 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{6885902 d^4 (c+d x)^2}-\frac{3 b (b c-a d)^2 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{3442951 d^4 (c+d x)}-\frac{7 b^2 B (b c-a d) g^3 n \log (c+d x)}{6885902 d^4}+\frac{3 b^2 B (b c-a d) g^3 n \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{3442951 d^4}-\frac{3 b^2 (b c-a d) g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right ) \log (c+d x)}{3442951 d^4}-\frac{\left (3 b^2 B (b c-a d) g^3 n\right ) \operatorname{Subst}\left (\int \frac{\log (x)}{x} \, dx,x,c+d x\right )}{3442951 d^4}-\frac{\left (3 b^2 B (b c-a d) g^3 n\right ) \int \frac{\log \left (\frac{d (a+b x)}{-b c+a d}\right )}{c+d x} \, dx}{3442951 d^3}\\ &=\frac{A b^3 g^3 x}{3442951 d^3}-\frac{B (b c-a d)^3 g^3 n}{13771804 d^4 (c+d x)^2}+\frac{5 b B (b c-a d)^2 g^3 n}{6885902 d^4 (c+d x)}+\frac{5 b^2 B (b c-a d) g^3 n \log (a+b x)}{6885902 d^4}+\frac{b^2 B g^3 (a+b x) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{3442951 d^3}+\frac{(b c-a d)^3 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{6885902 d^4 (c+d x)^2}-\frac{3 b (b c-a d)^2 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{3442951 d^4 (c+d x)}-\frac{7 b^2 B (b c-a d) g^3 n \log (c+d x)}{6885902 d^4}+\frac{3 b^2 B (b c-a d) g^3 n \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{3442951 d^4}-\frac{3 b^2 (b c-a d) g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right ) \log (c+d x)}{3442951 d^4}-\frac{3 b^2 B (b c-a d) g^3 n \log ^2(c+d x)}{6885902 d^4}-\frac{\left (3 b^2 B (b c-a d) g^3 n\right ) \operatorname{Subst}\left (\int \frac{\log \left (1+\frac{b x}{-b c+a d}\right )}{x} \, dx,x,c+d x\right )}{3442951 d^4}\\ &=\frac{A b^3 g^3 x}{3442951 d^3}-\frac{B (b c-a d)^3 g^3 n}{13771804 d^4 (c+d x)^2}+\frac{5 b B (b c-a d)^2 g^3 n}{6885902 d^4 (c+d x)}+\frac{5 b^2 B (b c-a d) g^3 n \log (a+b x)}{6885902 d^4}+\frac{b^2 B g^3 (a+b x) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )}{3442951 d^3}+\frac{(b c-a d)^3 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{6885902 d^4 (c+d x)^2}-\frac{3 b (b c-a d)^2 g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right )}{3442951 d^4 (c+d x)}-\frac{7 b^2 B (b c-a d) g^3 n \log (c+d x)}{6885902 d^4}+\frac{3 b^2 B (b c-a d) g^3 n \log \left (-\frac{d (a+b x)}{b c-a d}\right ) \log (c+d x)}{3442951 d^4}-\frac{3 b^2 (b c-a d) g^3 \left (A+B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )\right ) \log (c+d x)}{3442951 d^4}-\frac{3 b^2 B (b c-a d) g^3 n \log ^2(c+d x)}{6885902 d^4}+\frac{3 b^2 B (b c-a d) g^3 n \text{Li}_2\left (\frac{b (c+d x)}{b c-a d}\right )}{3442951 d^4}\\ \end{align*}
Mathematica [A] time = 0.484582, size = 334, normalized size = 0.87 \[ \frac{g^3 \left (6 b^2 B n (b c-a d) \left (2 \text{PolyLog}\left (2,\frac{b (c+d x)}{b c-a d}\right )+\log (c+d x) \left (2 \log \left (\frac{d (a+b x)}{a d-b c}\right )-\log (c+d x)\right )\right )-12 b^2 (b c-a d) \log (c+d x) \left (B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )+A\right )-\frac{12 b (b c-a d)^2 \left (B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )+A\right )}{c+d x}+\frac{2 (b c-a d)^3 \left (B \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )+A\right )}{(c+d x)^2}+4 b^2 B d (a+b x) \log \left (e \left (\frac{a+b x}{c+d x}\right )^n\right )+10 b^2 B n (b c-a d) \log (a+b x)-14 b^2 B n (b c-a d) \log (c+d x)+\frac{10 b B n (b c-a d)^2}{c+d x}-\frac{B n (b c-a d)^3}{(c+d x)^2}+4 A b^3 d x\right )}{4 d^4 i^3} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.605, size = 0, normalized size = 0. \begin{align*} \int{\frac{ \left ( bgx+ag \right ) ^{3}}{ \left ( dix+ci \right ) ^{3}} \left ( A+B\ln \left ( e \left ({\frac{bx+a}{dx+c}} \right ) ^{n} \right ) \right ) }\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 3.13512, size = 3907, normalized size = 10.23 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{A b^{3} g^{3} x^{3} + 3 \, A a b^{2} g^{3} x^{2} + 3 \, A a^{2} b g^{3} x + A a^{3} g^{3} +{\left (B b^{3} g^{3} x^{3} + 3 \, B a b^{2} g^{3} x^{2} + 3 \, B a^{2} b g^{3} x + B a^{3} g^{3}\right )} \log \left (e \left (\frac{b x + a}{d x + c}\right )^{n}\right )}{d^{3} i^{3} x^{3} + 3 \, c d^{2} i^{3} x^{2} + 3 \, c^{2} d i^{3} x + c^{3} i^{3}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b g x + a g\right )}^{3}{\left (B \log \left (e \left (\frac{b x + a}{d x + c}\right )^{n}\right ) + A\right )}}{{\left (d i x + c i\right )}^{3}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]